import axios from '../util/axios'

export function getUserList(params){
  return axios({
    url:'/admin/users',
    method:'GET',
    params
  })
}
export function addUserFn(params){
  return axios({
    url:'/admin/addUser',
    method:'POST',
    data:params
  })
}
export function EditUserFn(params){
  return axios({
    url:'/admin/editUser',
    method:'PUT',
    params
  })
}
export function DeleteUserFn(params){
  return axios({
    url:'/admin/deleteUser',
    method:'DELETE',
    params
  })
}

export function EditUserRole(params){
  return axios({
    url:'/admin/editUserRole',
    method:'PUT',
    params
  })
}

export function Login(params){
  return axios({
    url:'/doLogin',
    method:'POST',
    data:params
  })
}
export function getMessageList(params){
  return axios({
    url:'/getTouristList',
    method:'GET',
    params
  })
}